//获取应用实例
let app = getApp();
Page({
    data: {
	    isShowFootNav: false,
        isShowPage:true,
        progressList:[]
    },
    onLoad(option) {
        let pageObj = this;
        let opt = {
            url: app.globalData.host+"/wx/sd/detail.ajax",
            data: {
                orderId: option.orderId
            },
            sucFn(result) {
                let progressList = [];
                for(let i=0;i<result.body.processlist.length;i++){
                    let json = {
                        "name": result.body.processlist[i].name,
                        "createTime": app.toYMDHMSDate(result.body.processlist[i].createTime)
                    };
                    progressList.push(json);
                }

                pageObj.setData({
                    isShowPage: true,
                    "orderTitle": result.body.postUserName,
                    "orderId": result.body.orderId,
                     progressList: progressList
                });
            }
        };
        app.ajax(opt);
    }
});
